package org.groupg.project.config;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;

import java.util.List;

public class RulesWrapper {
    @JacksonXmlProperty(localName = "rule")
    @JacksonXmlElementWrapper(useWrapping = false)
    private List<RuleConfig> rules;

    public RulesWrapper() {}

    public RulesWrapper(List<RuleConfig> rules) {
        this.rules = rules;
    }

    public List<RuleConfig> getRules() {
        return rules;
    }
}